<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
	<div id="student_totaltb">
        <form id="student_totalForm" class="m5">
            <?php echo currTerm()["termName"]?>
            <select class="form-control1" name="grade" id="grade"></select>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('student_total')">查询</a>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('student_total')">重置</a><br/>
        </form>
    </div>
    <table id="student_totaldg">
        <thead>
            <tr>
                <th data-options="field:'年级名称',title:'年级名称',width:50"></th>
                <th data-options="field:'班号',title:'班号',width:50"></th>
                <th data-options="field:'人数',title:'人数',width:50"></th>
                <th data-options="field:'班主任',title:'班主任',width:50"></th>
            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        $(function(){
            var url = "/student/student_total";
            initDatagrid("student_total", url);
            initGrade("student_total");
            initSubject("student_total");
        })
        function initDatagrid(cf, url) {
            $("#"+cf+"dg").datagrid({
                url: url + "/pageQuery.html",
                rownumbers: true,
                striped: true,
                border: false,
                pagination: false,
                pageSize: 30,
                fitColumns: true,
                autoRowHeight: false,
                singleSelect: true,
                fit: true,
                toolbar: []
            })
            var tb = $("#"+cf+"tb").html();
            if(tb) {
                $(".datagrid-toolbar").prepend(tb);
                $("#"+cf+"tb").remove();
            }
        }
    </script>
</body>
</html>